/**
 * 
 */
package de.uni_leipzig.informatik.asv.unsupervised_pos_tagger.datacreation.feature_types;
/**
 * 
 * @author Christoph Teichmann
 * created Jun 3, 2014 4:30:34 PM
 * @version 0.1
 */
public class PunctuationFeatures extends GenericFeatureGenerator
{
	/**
	 * 
	 * @param pairs
	 * @param def
	 */
	public PunctuationFeatures()
	{
		super(new String[][] {{"\\p{Punct}+","ONLYPUNCT"},{"[^\\p{Punct}]+\\p{Punct}+","ENDPUNCT"},
				{"\\p{Punct}+[^\\p{Punct}]+","STARTPUNCT"},{"[^\\p{Punct}]+","NOPUNCT"}}, "MIXED");
	}
	/* (non-Javadoc)
	 * @see de.uni_leipzig.informatik.asv.unsupervised_pos_tagger.datacreation.FeatureType#process(java.lang.String)
	 */
	@Override
	public String process(String s)
	{return s;}
	/* (non-Javadoc)
	 * @see de.uni_leipzig.informatik.asv.unsupervised_pos_tagger.datacreation.FeatureType#name()
	 */
	@Override
	public String name()
	{return "PUNCTUATIONFEATURES";}
}